﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPF_MVVM_Sample
{
    public class ViewModel
    {
        private UserRecordViewModel _userRecordViewModel;
        public ViewModel()
        {
            User user = new User();
            user.FirstName = "Shahar";
            user.LastName = "Eldad";
            user.ID = 1;
            user.WorkPlace = "Sela Group";
            user.PhoneNumber = "123456789";
            _userRecordViewModel = new UserRecordViewModel(user);
        }

        public UserRecordViewModel UserRecordViewModel
        {
            get { return _userRecordViewModel; }
        }
    }
}
